<?php
/*
	插件初始化
*/
namespace jy_h5ewm;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->plugins=array();
	$plugin->types=array('二维码','链接');
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'title'=>'海报DIY标题',
		'desc'=>'海报DIY描述',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
			'left' => '10',
			'top' => '120',
			'type' => 'title',
			'width' => '280',
			'height' => '30',
		),
		'desc'=>array(
			'left' => '10',
			'top' => '150',
			'type' => 'desc',
			'width' => '280',
			'height' => '80',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
			'left' => '10',
			'top' => '120',
			'type' => 'title',
			'width' => '280',
			'height' => '30',
			'size' => '15',
			'bold'=>1,
			'color'=>'#cbc8c8'
		),
		array(
			'left' => '10',
			'top' => '150',
			'type' => 'desc',
			'width' => '280',
			'height' => '80',
			'size' => '14',
			'bold'=>1,
			'color'=>'#cbc8c8'
		),
		array(
			'left' => '116',
			'top' => '20',
			'type' => 'head',
			'width' => '80',
			'height' => '80',
			'isyuan'=>1
		),
		array(
			'left' => '180',
			'top' => '355',
			'type' => 'img',
			'width' => '100',
			'height' => '100',
			'src' => '../addons/jy_h5ewm/image/icon.png',
		),
	);
}